package com.lyb.constant;

/**
 * 磁盘常量类
 *
 * @author Mr.Alpaca
 * @version 1.4.0
 */
public class DiskConstant {
    /**
     * 磁盘大小(字节)
     */
    public static final int DISK_LENGTH = 8192;
    /**
     * 磁块大小，表示磁盘内每块磁块能存储的字节数
     */
    public static final int DISKBLOCK_LENGTH = 64;
    /**
     * 目录项字节数
     */
    public static final int DIRECTORY_ENTRY_LENGTH = 8;
    /**
     * 根目录项数
     */
    public static final int ROOT_DIRECTORY_NUM = 8;
    /**
     * 根目录大小(默认64字节)
     */
    public static final int ROOT_DIRECTORY_LENGTH = DISKBLOCK_LENGTH;
    /**
     * 文件分配表大小，默认两块磁块128字节
     */
    public static final int FAT_LENGTH = DISKBLOCK_LENGTH * 2;
    /**
     * 默认磁块最大关联数
     */
    public static final int BLOCKS_MAX_ASSOCIATION_NUM = 128;
    /**
     * 目录的文件类型
     */
    public static final String DIRECTORY_TYPE = " ";
}
